package com.sky.zzh;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.sky.zzh.setting.SetAppPwdActivity;
import com.sky.zzh.util.CommonUtil;
import com.sky.zzh.util.UserInfoManager;

public class BaseFragActivity extends FragmentActivity {
	/**
	 * 
	 */

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		if (SHApplication.getInstance().isLocked && UserInfoManager.getInstance().isLock() && !CommonUtil.isEmpty(UserInfoManager.getInstance().getAppPwd())) {// 判断是否需要跳转到密码界面
			System.out.println("BaseFragActivity:"+ UserInfoManager.getInstance().isLock());
			Intent intent = new Intent(this, SetAppPwdActivity.class);
			intent.putExtra("isIn", true);
			startActivity(intent);
		}
	}

	@Override
	protected void onStop() {
		super.onStop();

	}

}
